﻿
using CTBU.DAO;
using CTBU.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Student.Controllers
{
    public class DimAreaController : Controller
    {
        //
        // GET: /DimArea/


        public JsonResult GetByParentID(int ID)
        {
            DimAreaDAO _dimAreaDao = new DimAreaDAO();
            IList<TbDimArea> myList = _dimAreaDao.GetByWhere("IParentID=" + ID);

            return Json(myList, JsonRequestBehavior.AllowGet);



        }

    }
}
